package com.imooc.dto;

import lombok.Getter;

/**
 * 购物车
 *
 * @author feng
 * @date 2018/8/14 17:08
 */
@Getter
public class CartDTO {

    /**
     * 商品id.
     */
    private String productId;

    /**
     * 数量.
     */
    private Integer productQuantity;

    public CartDTO(String productId, Integer productQuantity) {
        this.productId = productId;
        this.productQuantity = productQuantity;
    }

    @Override
    public String toString() {
        return "CartDTO{" +
                "productId='" + productId + '\'' +
                ", productQuantity=" + productQuantity +
                '}';
    }
}
